home *** CD-ROM | disk | FTP | other *** search
/ Foreland January 1997 / Foreland January 1997.iso / glossary.dir / 00035.ls < prev    next >
Encoding:
Text File  |  1996-12-26  |  1.3 KB  |  52 lines

  1. on checkBar
  2.   global menuNum
  3.   repeat with menuNum = 43 to 48
  4.     if rollOver(42) then
  5.       set the visible of sprite menuNum to 1
  6.       next repeat
  7.     end if
  8.     set the visible of sprite menuNum to 0
  9.   end repeat
  10. end
  11.  
  12. on hiliteButtons
  13.   repeat with spriteNum = 43 to 48
  14.     if rollOver(spriteNum) then
  15.       set mNum to the memberNum of sprite spriteNum
  16.       set mname to the name of member mNum
  17.       set hiliteName to mname && "hilite"
  18.       set hiliteNum to the number of member hiliteName
  19.       if hiliteNum > 0 then
  20.         puppetSprite(spriteNum, 1)
  21.         set the memberNum of sprite spriteNum to hiliteNum
  22.       end if
  23.       next repeat
  24.     end if
  25.     puppetSprite(spriteNum, 0)
  26.   end repeat
  27. end
  28.  
  29. on buttonClicked
  30.   set spriteNum to the clickOn
  31.   set upNum to the memberNum of sprite spriteNum
  32.   set upName to the name of member upNum
  33.   set downName to upName && "down"
  34.   set downNum to the number of member downName
  35.   set the memberNum of sprite spriteNum to downNum
  36.   updateStage()
  37.   repeat while the mouseDown
  38.     if rollOver(spriteNum) then
  39.       set the memberNum of sprite spriteNum to downNum
  40.     else
  41.       set the memberNum of sprite spriteNum to upNum
  42.     end if
  43.     updateStage()
  44.   end repeat
  45.   if the memberNum of sprite spriteNum = downNum then
  46.     set the memberNum of sprite spriteNum to upNum
  47.     updateStage()
  48.     return 1
  49.   end if
  50.   return 0
  51. end
  52.